<%--
  Created by IntelliJ IDEA.
  User: Lilinjun
  Date: 17/5/23
  Time: 下午2:14
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>市场活动设定</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="shortcut icon" href="http://7xkzac.com2.z0.glb.qiniucdn.com/fahailogo.png" type="image/x-icon"/>

    <link rel="stylesheet" href="/assets/css/lib/bootstrap.min.css">
    <link rel="stylesheet" href="/assets/css/lib/pagination.css">

    <link rel="stylesheet" href="/assets/css/common.css">
    <link rel="stylesheet" href="/assets/css/market_rules.css">
</head>
<body>
<div id="cms">
    <jsp:include page="title_bar.jsp"/>
    <jsp:include page="tab_bar.jsp"/>
    <div class="cms-content">
        <div class="current-place">
            <div class="place-title">当前位置:</div>
            <div class="place-val">首页/市场活动设定</div>
        </div>
        <div class="cms-sub-content clearfix">
            <div class="table-util">
                <div class="common-title">
                    <div class="common-left-line"></div>
                    <div class="common-text">新客户活跃度参数设定</div>
                    <div class=" common-right-btn result-add-btn" name="roleMenu" onclick="show_market_add()">新增</div>
                </div>
                <div class="table-box new-client-table">
                    <table class="table table-bordered">
                        <thead>
                        <th>项目</th>
                        <th>英文标识</th>
                        <th>咨询次数</th>
                        <th>备注</th>
                        <th>操作</th>
                        </thead>
                        <tbody id="list">
                      <%--  <tr>
                            <td>通话未接通定义</td>
                            <td>0</td>
                            <td>当通话时间等于0,则该次通话认定为未接通</td>
                            <td class="operate">
                                <div class="result-status-btn result-status-active">启用</div>
                                <div class="result-edit edit-btn">编辑</div>
                            </td>
                        </tr>
                        <tr>
                            <td>通话未接通定义</td>
                            <td>0</td>
                            <td>当通话时间等于0,则该次通话认定为未接通</td>
                            <td class="operate">
                                <div class="result-status-btn ">停用</div>
                                <div class="result-edit edit-btn">编辑</div>
                            </td>
                        </tr>--%>
                        </tbody>
                        <script id="listtmp" type="text/html">
                            <!for(k in result){
                            var v=result[k];
                            !>
                            <tr>
                                <td class="confName"><!=v.confName!></td>
                                <td class="confEname"><!=v.confEname!></td>
                                <td class="confValue"><!=v.confValue!></td>
                                <td class="remark"><!=v.remark!></td>
                                <td class="operate">
                                    <div class="result-status-btn  <!=v.isStatus==0?'result-status-active':''!>"
                                         data-value="<!=v.isStatus!>"
                                         id-value="<!=v.allId!>" onclick="changeStatus(this)"
                                    > <!=v.isStatus==0?'启用':'停用'!>
                                    </div>
                                    <div class="result-edit edit-btn"
                                         data-value="<!=v.isStatus!>"
                                         id-value="<!=v.allId!>" onclick="show_market_update(this)"
                                    >编辑
                                    </div>
                                </td>
                            </tr>
                            <!}!>
                        </script>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>

</div>
<!--新客户活跃度参数设定-->
<div class="cms-modal-lg" id="result-pop">
    <div class="cms-modal-dialog">
        <div class="cms-modal-title">修改通话效果参数</div>
        <div class="cms-madal-content">
            <div class="state-unit">
                <div class="two-stage">
                    <div class="state-left">项目</div>
                    <div class="state-right ">
                        <input type="text" class="form-control result-project-name" id="confName_edit"
                               class="{required:true,maxlength:5,messages:{required:'请输入内容'}}">
                        <input type="text" class="form-control result-project-name" style="display: none;" id="allId">
                    </div>
                </div>
                <div class="two-stage">
                    <div class="state-left">咨询次数</div>
                    <div class="state-right time">
                        <input type="text" class="form-control" id="confValue_edit" digits="true">
                        <span>次</span>
                    </div>
                </div>
            </div>
            <div class="state-unit">
                <div class="two-stage">
                    <div class="state-left">英文标识</div>
                    <div class="state-right ">
                        <input type="text" class="form-control result-project-name" id="confEname_edit" maxlength="10">
                    </div>
                </div>

            </div>
            <div class="remark-title">备注</div>
            <div>
                <textarea placeholder="请输入备注" class="common-remark result-remark" id="remark_edit"
                          maxlength="200"></textarea>
                <div class="limit200">限200字</div>
            </div>

        </div>
        <div class="cms-modal-bottom clearfix">
            <button type="button" class="cms-confirm result-save" onclick="market_update_save()">保存</button>
            <button type="button" class="cms-cancel result-cancel">取消</button>
        </div>
    </div>
</div>
<div class="cms-modal-ms" id="operate-before-pop" style="display: none">
    <div class="cms-modal-dialog">
        <div class="cms-modal-title">操作提醒</div>
        <div class="cms-madal-content">
            <div class="operate-before-info">任何运营规则的修改都可能对系统整体产生影响，<br/> 您确认要对本条规则进行修改吗？</div>
        </div>
        <div class="cms-modal-bottom">
            <button type="button" class="cms-confirm operate-before-confirm">确定</button>
            <button type="button" class="cms-cancel operate-before-cancel">放弃</button>
        </div>
    </div>
</div>
<div class="cms-modal-ms" id="operate-after-pop" style="display: none">
    <div class="cms-modal-dialog">
        <div class="cms-modal-title">操作提醒</div>
        <div class="cms-madal-content">
            <div class="operate-after-question">请再次确认您要对本条规则进行修改吗？</div>
            <div class="operate-after-info">请务必保证您已经做好了充分的准备工作与运营、市 场、研发等部门沟通过。</div>
        </div>
        <div class="cms-modal-bottom">
            <button type="button" class="cms-confirm operate-after-confirm">确定</button>
            <button type="button" class="cms-cancel operate-after-cancel">放弃</button>
        </div>
    </div>
</div>

</body>
<script type="text/javascript" src="/assets/js/lib/jquery-1.12.3.js"></script>
<script type="text/javascript" src="/assets/js/lib/jquery.metadata.js"></script>
<script type="text/javascript" src="/assets/js/lib/jquery.validate.js"></script>
<script type="text/javascript" src="/assets/js/lib/jquery.validate.messages_cn.js"></script>

<script type="text/javascript" src="/assets/js/lib/bootstrap.min.js"></script>
<script type="text/javascript" src="/assets/js/lib/modal.js"></script>
<script type="text/javascript" src="/assets/js/lib/cmsmodal.js"></script>

<script type="text/javascript" src="/assets/js/lib/distpicker.data.js"></script>
<script type="text/javascript" src="/assets/js/lib/distpicker.js"></script>
<script type="text/javascript" src="/assets/js/lib/jquery.pagination.js"></script>

<script type="text/javascript" src="/assets/js/lib/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/assets/js/common.js"></script>
<script type="text/javascript" src="/assets/js/communal/template.js"></script>

<script type="text/javascript" src="/assets/js/market_rules.js"></script>
</html>